package com.shen.car;

/**
 * Author:shen
 * CreateDate:2020/5/10.
 * Function:
 */
public class Car {
    private String name;
    private boolean state;//true在库 false借出
    private int date;
    private int count;
    private int money;

    public Car() {
    }


    public Car(String name, boolean state, int date, int count, int money) {
        this.name = name;
        this.state = state;
        this.date = date;
        this.count = count;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isState() {
        return state;
    }

    public boolean getState() {
       return this.state;
    }
    public void setState(boolean state) {
        this.state = state;
    }

    public int getDate() {
        return date;
    }

    public void setDate(int date) {
        this.date = date;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Car{" +
                "name='" + name + '\'' +
                ", state=" + state +
                ", date=" + date +
                ", count=" + count +
                ", money=" + money +
                '}';
    }
}
